package map_reduce_filter

// 一对一处理
//

func Map(arr []string, fn func(s string)string) []string {
	var newarr = []string{}
	for _, it := range arr {
		newarr = append(newarr,fn(it))
	}
	return newarr
}